<template>
  <div class="m-table-search">
      <div class="m-table-search-header">
          {{title}}
      </div>
      <div class="m-table-search-body">
          <slot></slot>
      </div>
  </div>
</template>

<script>
export default {
  name: "card",
  props: ["title"],
  data() {
    return {
      msg: "Welcome to Your Vue.js App"
    };
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style  lang="scss" scoped>
.m-table-search {
  width: 100%;
  height: 100%;
  background-color: white;
}

.m-table-search-header {
  height: 40px;
  line-height: 40px;
  background-color: lightblue;
  padding: 0px 15px;
  font-size: 15px;
}

.m-table-search-body {
  width: 100%;
  height: calc(100% - 30px);
  padding: 10px 15px;
}
</style>
